
<!DOCTYPE html>
<html>

<head>

    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">


    <title>{$Think.config.site.title} - 经营设置</title>

    <meta name="keywords" content="{$Think.config.site.keywords}">
    <meta name="description" content="{$Think.config.site.description}">
    <link href="{$Think.config.site.resource_url}css/bootstrap.min.css?v=3.3.6" rel="stylesheet">
    <link href="{$Think.config.site.resource_url}css/font-awesome.css?v=4.4.0" rel="stylesheet">
    <link href="{$Think.config.site.resource_url}css/plugins/iCheck/custom.css" rel="stylesheet">
    <link href="{$Think.config.site.resource_url}css/plugins/steps/jquery.steps.css" rel="stylesheet">
    <link href="{$Think.config.site.resource_url}css/animate.css" rel="stylesheet">
    <link href="{$Think.config.site.resource_url}css/plugins/datapicker/datepicker3.css" rel="stylesheet">
    <link href="{$Think.config.site.resource_url}css/plugins/ionRangeSlider/ion.rangeSlider.css" rel="stylesheet">
    <link href="{$Think.config.site.resource_url}css/plugins/ionRangeSlider/ion.rangeSlider.skinFlat.css" rel="stylesheet">
    <link href="{$Think.config.site.resource_url}css/plugins/awesome-bootstrap-checkbox/awesome-bootstrap-checkbox.css" rel="stylesheet">
    <link href="{$Think.config.site.resource_url}css/plugins/clockpicker/clockpicker.css" rel="stylesheet">
    <link rel="stylesheet" type="text/css" href="{$Think.config.site.resource_url}css/plugins/markdown/bootstrap-markdown.min.css" />
    <link href="{$Think.config.site.resource_url}css/style.css?v=4.1.0" rel="stylesheet">
</head>
<style type="text/css">
    .wizard > .steps > ul > li {
    width: 20%;
}
.wizard-big.wizard > .content {
    height: 880px;
    /* max-height: 500px; */
}
.wizard > .content > .body {
    float: left;
    position: absolute;
    width: 95%;
    /* height: 95%; */
    padding: 2.5%;
}
.yy11{ padding-top:25px;  }
</style>
<body class="gray-bg">
    <div class="wrapper wrapper-content animated fadeIn">
        <div class="row">
            <div class="col-sm-12">
                <div class="ibox">
                    <div class="ibox-title">
                        <h5>{:lang('经营设置信息')}</h5>
                    </div>
                    <div class="ibox-content">
                        <form id="myform" class="wizard-big" method="post" enctype="multipart/form-data"  action="<?php echo \think\Request::instance()->root(); ?>/ausadmin/Jysetting/add">
                            <h1>{:lang('基本信息')}</h1>
                            <fieldset>
                                <div class="row">
                                    <div class="col-sm-6">
                                     <h2>{:lang('基本信息')}</h2>
                                        <div class="form-group">
                                            <label>{:lang('运营名称')} *</label>
                                            <input id="name" name="name" type="text" class="form-control required">
                                        </div>
                                        <div class="form-group">
                                            <label>{:lang('域名')} *</label>
                                            <input id="domain" name="domain" type="url" class="form-control required">
                                        </div>
                                        <div class="form-group">
                                            <label>{:lang('联系人')} *</label>
                                            <input id="contacts" name="contacts" type="text" class="form-control required">
                                        </div>

                                        <div class="form-group">
                                            <label>{:lang('联系电话')} *</label>
                                            <input id="mobile" name="mobile" type="tel" class="form-control required">
                                        </div>

                                        <div class="form-group">
                                            <label>{:lang('客服电话')} *</label>
                                            <input id="servicephone" name="servicephone" type="tel" class="form-control required">
                                        </div>

                                        <div class="form-group">
                                            <label>{:lang('地址')} *</label>
                                            <input id="addrs" name="addrs" type="text" class="form-control required">
                                        </div>

                                        <div class="form-group">
                                            <label>logo *</label>
                                            <input id="logo" name="logo" type="file" class="file">
                                        </div>
                                    </div>
                                    <div class="col-sm-6">
                                        <h2>{:lang('运营信息')}</h2>
                                        <div class="form-group">
                                            <label>{:lang('押金')} *</label>
                                            <input id="deposit" name="deposit" type="text" class="form-control required">
                                        </div>
                                        <div class="form-group">
                                            <label class="col-xs-12">{:lang('可充值金额')} *</label>
                                            <div class="col-xs-2"><input id="prepaidamount" name="prepaidamount[]" type="text" class="form-control required"></div>
                                            <div class="col-xs-2"><input id="prepaidamount" name="prepaidamount[]" type="text" class="form-control "></div>
                                            <div class="col-xs-2"><input id="prepaidamount" name="prepaidamount[]" type="text" class="form-control required"></div>
                                            <div class="col-xs-2"><input id="prepaidamount" name="prepaidamount[]" type="text" class="form-control"></div>
                                            <div class="col-xs-4">&nbsp;</div>
                                        </div>
                                        <div class="col-xs-12">&nbsp;<label for=""></label></div>
                                        <p style="clear:both;"></p>
                                        <div class="form-group">
                                            <label>{:lang('单位价格')} *</label>
                                            <input id="amount" name="amount" type="text" class="form-control required">
                                        </div>

                                        <div class="form-group">
                                            <label>{:lang('计费时长')} *</label>
                                            <input id="billingtime" name="billingtime" type="text" class="form-control required">
                                        </div>

                                        <div class="form-group yy11">
                                            <label class="col-sm-3 control-label">{:lang('计费单位')} *</label>
                                            <div class="col-sm-9">
                                            <div class="radio radio-info radio-inline">
                                                <input type="radio" id="inlineRadio1" value="1" name="billingunit" >
                                                <label for="inlineRadio1"> {:lang('小时')} </label>
                                            </div>
                                            <div class="radio radio-inline">
                                                <input type="radio" id="inlineRadio2" value="2" name="billingunit"  checked="checked">
                                                <label for="inlineRadio2"> {:lang('分钟')} </label>
                                            </div>
                                            </div>
                                        </div>
                                        <div class="form-group">
                                            <div class="ibox float-e-margins">
                                                <div class="ibox-title" style="border-color:#fff">
                                                    <h5>{:lang('小程序简介')}</h5>
                                                </div>
                                                <div class="ibox-content">
                                                    <textarea name="introduce" data-provide="markdown" class="required" rows="10" required="" aria-required="true"></textarea>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="form-group yy11">

                                            <input type="hidden" id="" value="2" name="depositrefund" >
                                        </div>
                                    </div>
                                </div>

                            </fieldset>
                            <h1>{:lang('注册协议')}</h1>
                            <fieldset>
                                <h2>{:lang('注册协议')}</h2>
                                <div class="row">
                                    <div class="col-sm-12">
                                        <div class="ibox-content">
                                            <textarea name="xy1" data-provide="markdown" rows="20" class="required" ></textarea>
                                        </div>
                                    </div>
                                </div>
                            </fieldset>

                            <h1>{:lang('充值协议')}</h1>
                            <fieldset>
                            <h2>{:lang('充值协议')}</h2>
                                <div class="row">
                                    <div class="col-sm-12">
                                        <div class="ibox-content">
                                            <textarea name="xy2" data-provide="markdown" class="required" rows="20"></textarea>
                                        </div>
                                    </div>
                                </div>
                            </fieldset>

                            <h1>{:lang('用户协议')}</h1>
                            <fieldset>
                                <h2>{:lang('用户协议')}</h2>
                                <div class="row">
                                    <div class="col-sm-12">
                                        <div class="ibox-content">
                                            <textarea name="xy3" data-provide="markdown" class="required" rows="20"></textarea>
                                        </div>
                                    </div>
                                </div>
                            </fieldset>

                            <h1>{:lang('隐私协议')}</h1>
                            <fieldset>
                                <h2>{:lang('隐私协议')}</h2>
                                <div class="row">
                                    <div class="col-sm-12">
                                        <div class="ibox-content">
                                            <textarea name="xy4" data-provide="markdown" class="required" rows="20"></textarea>
                                        </div>
                                    </div>
                                </div>
                            </fieldset>
                        </form>
                    </div>
                </div>
                </div>
            </div>
        </div>      
    </div>


    <!-- 全局js -->
    <script src="{$Think.config.site.resource_url}js/jquery.min.js?v=2.1.4"></script>
    <script src="{$Think.config.site.resource_url}js/bootstrap.min.js?v=3.3.6"></script>
    <!-- 自定义js -->
    <script src="{$Think.config.site.resource_url}js/content.js?v=1.0.0"></script>
    <!-- jQuery Validation plugin javascript-->
    <script src="{$Think.config.site.resource_url}js/plugins/validate/jquery.validate.min.js"></script>
    <script src="{$Think.config.site.resource_url}js/plugins/validate/messages_zh.min.js"></script>
    <script src="{$Think.config.site.resource_url}js/demo/form-validate-demo.js"></script>
    <!-- simditor -->
    <script type="text/javascript" src="{$Think.config.site.resource_url}js/plugins/markdown/markdown.js"></script>
    <script type="text/javascript" src="{$Think.config.site.resource_url}js/plugins/markdown/to-markdown.js"></script>
    <script type="text/javascript" src="{$Think.config.site.resource_url}js/plugins/markdown/bootstrap-markdown.js"></script>
    <script type="text/javascript" src="{$Think.config.site.resource_url}js/plugins/markdown/bootstrap-markdown.zh.js"></script>
    <!-- Steps -->
    <script src="{$Think.config.site.resource_url}js/plugins/staps/jquery.steps.min.js"></script>
    <script>
        $(document).ready(function () {
           // $("#wizard").steps();
            $("#myform").steps({
                bodyTag: "fieldset",
                onStepChanging: function (event, currentIndex, newIndex) {
                    // Always allow going backward even if the current step contains invalid fields!
                    if (currentIndex > newIndex) {
                        return true;
                    }

                    // Forbid suppressing "Warning" step if the user is to young
                    /*if (newIndex === 3 && Number($("#age").val()) < 18) {
                        return false;
                    }*/

                    var form = $(this);

                    // Clean up if user went backward before
                    if (currentIndex < newIndex) {
                        // To remove error styles
                        $(".body:eq(" + newIndex + ") label.error", form).remove();
                        $(".body:eq(" + newIndex + ") .error", form).removeClass("error");
                    }

                    // Disable validation on fields that are disabled or hidden.
                    form.validate().settings.ignore = ":disabled,:hidden";

                    // Start validation; Prevent going forward if false
                    return form.valid();
                },
                 onStepChanged: function (event, currentIndex, priorIndex) {
                    // Suppress (skip) "Warning" step if the user is old enough.
                   /* if (currentIndex === 2 && Number($("#age").val()) >= 18) {
                        $(this).steps("next");
                    }*/

                    // Suppress (skip) "Warning" step if the user is old enough and wants to the previous step.
                    if (currentIndex === 2 && priorIndex === 3) {
                        $(this).steps("previous");
                    }
                },
               onFinishing: function (event, currentIndex) {
                    var form = $(this);

                    // Disable validation on fields that are disabled.
                    // At this point it's recommended to do an overall check (mean ignoring only disabled fields)
                    form.validate().settings.ignore = ":disabled";

                    // Start validation; Prevent form submission if false
                    return form.valid();
                },
                onFinished: function (event, currentIndex) {
                    /*var form = $("#myform");
                    form.submit();*/
                    //alert('123456');
                    $("#myform").submit();
                }
            });
        });
    </script>    
</body>

</html>
